var SignEdit = {
		data: {}
}
SignEdit.submit = function(){
	SignEdit.collectData();
	window.parent.addSignData(SignEdit.data);
	window.parent.layer.closeAll();
}
SignEdit.close = function () {
	window.parent.layer.close(window.parent.Edit.layerIndex);
};

SignEdit.collectData = function () {
	$(".form-control").each(function(i,v){ 
		SignEdit.data[v.id] = v.value;
	});
	SignEdit.data['signText'] = $("#signId option:selected").text();
};
$(function(){
	//表单校验
	$("#submitForm").validate({
		rules: {
			signId: "required",
			pageNum: "required",
			rectangle: "required"
		}, 
		messages: {
		},
		submitHandler:function(form){
			SignEdit.submit();
		}
	});
});
